/**
 * 
 */
package org.starsource.forum.client.web;

import org.starsource.forum.client.domain.UserObject;
import org.starsource.forum.client.exception.DatabaseException;
import org.starsource.forum.client.exception.ServerException;
import org.starsource.forum.client.exception.UserNotFoundException;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * @author james
 *
 */

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("user")
public interface UserService extends RemoteService {

	public UserObject login(String account, String password) throws UserNotFoundException, DatabaseException, ServerException;
	
	public void changePassword(String password) throws DatabaseException, ServerException;
	
	public UserObject authenticate(String account, String authKey) throws UserNotFoundException, DatabaseException, ServerException;
	
}
